package scheduler

import (
	"01-crawler-project/02/engine"
)

type SimpleScheduler struct {
	workerChan *chan engine.Request
}

func (s *SimpleScheduler) Submit(request engine.Request) {

	go func() {

		*s.workerChan <- request
	}()


}
func (s *SimpleScheduler) SetWorkerChan(workerChan *chan engine.Request) {

	s.workerChan = workerChan

}
